Skip to main content

screenGamma

Type

property

Summary

Specifies the gamma value used for displaying PNG images.

Syntax

set the screenGamma to <gammaValue>

Description

Use the screenGamma property to control the color display of PNG images.

PNG images can contain a preferred gamma setting. To display a PNG to best advantage, you may need to adjust the screenGamma property to match what the PNG expects.

Changes in the screenGamma do not apply to PNG images that are already displayed. A PNG image uses the screenGamma that was in effect when it was being decompressed for display.

tip

To force LiveCode to re-decompress a PNG image without leaving the card, put the image into itself:

    set the screenGamma to 2.2
put image \"Test PNG\" into image \"Test PNG\"

Examples

set the screenGamma to 2.2

glossary: gamma, property, PNG

keyword: card, image

object: image

property: dontDither

function: value

Compatibility and Support

Introduced

LiveCode 1.0

OS

mac

windows

linux

Platforms

desktop

server

Thank you for your feedback!

Was this page helpful?